<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>后台 - 代理报表</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/Public/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/Public/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/Public/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>
<style>
    /*分页样式*/
    .pages a,.pages span {
        display:inline-block;
        padding:4px 7px;
        margin:0 2px;
        border:1px solid #D5D4D4;
        -webkit-border-radius:1px;
        -moz-border-radius:1px;
        border-radius:1px;
    }
    .pages a,.pages li {
        display:inline-block;
        list-style: none;
        text-decoration:none; color:#3399ff;
    }

    .pages a:hover{
        border-color:#3399ff;
    }
    .pages span.current{
        background:#3399ff;
        color:#FFF;
        font-weight:700;
        border-color:#3399ff;
    }
    .pages{
        text-align: center;
    }
    /*分页样式*/
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="row">
                        <form method="post" action="<?php echo U('Member/infoList');?>">
                            <div class="col-sm-2">
                                <select class="form-control" name="game">
                                    <option value="">全部</option>
                                    <option value="hundred"  <?php if($game == 'hundred'): ?>selected<?php endif; ?> >百家乐(视讯)</option>
                                    <option value="longhu"  <?php if($game == 'longhu'): ?>selected<?php endif; ?> >龙虎斗(视讯)</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <select class="form-control" name="is_add">
                                    <option value="">全部</option>
                                    <option value="1"  <?php if($is_add == '1'): ?>selected<?php endif; ?> >已结算</option>
                                    <option value="0"  <?php if($is_add == '0'): ?>selected<?php endif; ?> >未结算</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <input type="text" placeholder="开始时间" id="starttime" name="starttime" value='<?php echo ($starttime); ?>' class="form-control">
                            </div>
                            <div class="col-sm-2">
                                <input type="text" placeholder="结束时间" id="endtime" name="endtime" value='<?php echo ($endtime); ?>' class="form-control">
                            </div>
                            <!--<div class="col-sm-2">-->
                                <!--<input type="text"  placeholder="请输入用户号或昵称" name="nickname" value="<?php echo ($nickname); ?>" class="input-sm form-control"> <span class="input-group-btn">-->
                            <!--</div>-->
                            <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                        </form>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                            <tr>
                                <td width="100">总计</td>
                                <td width="100">
                                    总台
                                </td>
                                <td width="100">
                                    <?php echo ($all["bet"]); ?>
                                </td>
                                <td width="100">
                                    <?php echo ($all["add_points"]); ?>
                                </td>
                                <td width="100">
                                    <?php echo ($all["del_points"]); ?>
                                </td>
                                <td width="100">
                                    <?php echo ($all["zx"]); ?>
                                </td>
                                <td width="100">
                                    <?php echo ($all["hd"]); ?>
                                </td>
                                <td width="100">
                                    <?php echo ($all["compare_points"]); ?>
                                </td>
                            </tr>
                            <tr>
                                <th>昵称</th>
                                <th>代理/会员</th>
                                <th>流水</th>
                                <th>进项</th>
                                <th>出项</th>
                                <th>庄闲</th>
                                <th>合对</th>
                                <th>输赢</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($arr)): $i = 0; $__LIST__ = $arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                    <td width="100"><?php echo ($vo["nickname"]); ?></td>
                                    <td width="100">
                                        <?php if($vo["is_agent"] == 0): ?>会员
                                            <?php else: ?>
                                            代理<?php endif; ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["bet"]); ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["add_points"]); ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["del_points"]); ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["zx"]); ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["hd"]); ?>
                                    </td>
                                    <td width="100">
                                        <?php echo ($vo["compare_points"]); ?>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/Public/Admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/Public/Admin/js/plugins/layer/laydate/laydate.js"></script>
<script src="/Public/Common/layer/layer.js"></script>
<script>
    laydate({
        elem: '#starttime',
        istime: true,
        format: 'YYYY-MM-DD hh:mm:ss', //日期格式
        max: laydate.now(), //+1代表明天，+2代表后天，以此类推
    });
    laydate({
        elem: '#endtime',
        istime: true,
        format: 'YYYY-MM-DD hh:mm:ss', //日期格式
        max: laydate.now(), //+1代表明天，+2代表后天，以此类推
    });
</script>
<script>
    $(document).ready(function() {
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
</script>
<script>
    function del(id){
        layer.confirm('确定要删除吗？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            window.location.href="<?php echo U('Order/del');?>?id="+id

        });
    }

    function admin_cancel(id){
        layer.confirm('确定要取消吗？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            window.location.href="<?php echo U('Order/admin_cancel');?>?id="+id
        });
    }
</script>
</body>


</html>